package com.zhouheng.springbootconverter.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 测试全局Date和String互转类
 *
 *
 * @author 周恒
 * @date 20191210 16:21:15
 * @since v1.0
 */
@Data
public class DateVo {

    @JsonFormat(pattern = "yyyyMMddHHmmss")
    @ApiModelProperty(example = "2019-01-01 00:00:00")
    private Date date;

}
